<!DOCTYPE html>
<html>
<head>
    <title>{{ title }} - Omi</title>
    <meta charset="UTF-8">
    <meta http-equiv="refresh" content="1;url={{ redirect_url }}">
    <style>
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }
        .container {
            text-align: center;
            padding: 2rem;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            backdrop-filter: blur(10px);
            max-width: 500px;
        }
        h2 { 
            margin: 0 0 1rem 0; 
            font-size: 1.5rem;
        }
        .spinner {
            border: 3px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            border-top: 3px solid white;
            width: 40px;
            height: 40px;
            animation: spin 1s linear infinite;
            margin: 20px auto;
        }
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        p {
            margin: 0.5rem 0;
            line-height: 1.5;
        }
        .small-text {
            font-size: 0.9em;
            margin-top: 20px;
        }
        a {
            color: white;
            text-decoration: underline;
        }
        a:hover {
            opacity: 0.8;
        }
    </style>
</head>
<body>
    <div class="container">
        <h2>{{ icon }} {{ message }}</h2>
        {% if show_spinner %}
        <div class="spinner"></div>
        {% endif %}
        <p>{{ description }}</p>
        <p class="small-text">
            If you're not redirected automatically, 
            <a href="{{ redirect_url }}">click here</a>
        </p>
    </div>
    <script>
        setTimeout(function() {
            window.location.href = '{{ redirect_url }}';
        }, 1000);
    </script>
</body>
</html>
